#include<stdio.h>
int main()
{
    freopen("in.txt","r",stdin);
    int x;
    scanf("%d",&x);
    printf("%d",x*x*x);
}